package net.yvesd.cellhunter;

import android.telephony.PhoneStateListener;
import android.telephony.SignalStrength;

/**
 * This class is here only beacuse the developer has no mean retrieving the
 * signal strength from TelephonyManager
 */
public class StrengthListener extends PhoneStateListener {

	private int signalStrength;

	@Override
	public void onSignalStrengthsChanged(SignalStrength signalStrength) {
		this.signalStrength = signalStrength.getGsmSignalStrength();

		super.onSignalStrengthsChanged(signalStrength);
	}

	public int getSignalStrength() {
		return signalStrength;
	}
}
